{
语法百题 解题报告：
 http://git.oschina.net/et0662/sznoi-grammar/ 
}
var
	a,b,c,i:integer;
begin
	readln(a,b,c);
	for i:=9 downto 1 do
	begin
		if ((a mod i)=0 ) and ((b mod i)=0 ) and ((c mod i)=0 ) then
		begin
			a:=a div i;
			b:=b div i;
			c:=c div i;
			break;
		end;
	end;
	for i:=1 to 9 do
	begin
		if ((a * i)<=9 ) and ((b * i)<=9 ) and ((c * i)<=9) then
			writeln(a*i,' ',b*i,' ',c*i)
		else
			break;
	end;
end.
